package decorator;

/**
 * @ClassName DecoratorDemoTest
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/8/5 11:33
 * @Version 1.0
 */
public class DecoratorDemoTest {
	public static void main(String[] args) {
		TextNode textNode = new SpanTextNode();
		textNode.setText("测试文本");

		System.out.println(textNode.getText());

		TextNode boldText = new BoldDecorator(textNode);
		System.out.println(boldText.getText());
	}
}
